package com.abvnet.project.water.project.service;

import com.abvnet.project.water.project.domain.ProjectPlanDescription;
import com.abvnet.project.water.project.mapper.ProjectPlanDescriptionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 项目方案描述 服务层实现
 * 
 * @author wolf
 * @date 2019-10-21
 */
@Service
public class ProjectPlanDescriptionServiceImpl implements IProjectPlanDescriptionService {
	@Autowired
	private ProjectPlanDescriptionMapper projectPlanDescriptionMapper;

	/**
	 * 查询项目方案描述列表
	 *
	 * @param projectId 项目ID
	 * @return 项目方案描述集合
	 */
	public ProjectPlanDescription selectProjectPlanDescriptionByProjectId(Long projectId) {
		return projectPlanDescriptionMapper.selectProjectPlanDescriptionByProjectId(projectId);
	}

	/**
	 * 新增项目方案描述
	 *
	 * @param projectPlanDescription 项目方案描述信息
	 * @return 结果
	 */
	public int insertProjectPlanDescription(ProjectPlanDescription projectPlanDescription) {
		return projectPlanDescriptionMapper.insertProjectPlanDescription(projectPlanDescription);
	}

	/**
	 * 修改项目方案描述
	 *
	 * @param projectPlanDescription 项目方案描述信息
	 * @return 结果
	 */
	public int updateProjectPlanDescription(ProjectPlanDescription projectPlanDescription) {
		return projectPlanDescriptionMapper.updateProjectPlanDescription(projectPlanDescription);
	}

	/**
	 * 删除项目方案描述
	 *
	 * @param projectId 项目ID
	 * @return 结果
	 */
	public int deleteProjectPlanDescription(Long projectId) {
		return projectPlanDescriptionMapper.deleteProjectPlanDescription(projectId);
	}
}